import React from 'react';
import { connect } from 'umi';
import BackIcon from '@/components/BackIcon';
import PublicList from '@/components/PublicList';
import { feedback_list } from '@/services/factory';
import styles from './index.less';

let Header = () => {
  return (
    <div className={styles.adds}>
      <div style={{ fontSize: 16 }} className="oneline">
        我的投诉
      </div>
    </div>
  );
};

let Feedback = connect(({ global, loading }) => ({
  global,
  loading,
}))(({ global: { userinfo, companies } }) => {
  return (
    <div style={{ height: '100%' }}>
      <BackIcon></BackIcon>
      <PublicList
        Header={Header}
        post={feedback_list}
        type="feedback_list"
      ></PublicList>
    </div>
  );
});

export default connect(({ global, loading }) => ({
  global,
  loading,
}))(Feedback);
